//
//  FNMockManager.h
//  MockServer
//
//  Created by caoyq on 2021/2/9.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/**
 * mock 管理单例
 */
@interface FNMockManager : NSObject

/// 是否开启 mock
@property (nonatomic, assign) BOOL isMock;
/// 拦截 map 表
@property (nonatomic, strong) NSDictionary *mapTable;
/// 服务器域名
@property (nonatomic, strong) NSString *domain;
/// 配置表路径
@property (nonatomic, strong) NSString *mapPath;

/// 自定义的队列
@property (nonatomic, strong) NSOperationQueue *delegateQueue;


/// 构建单例
+ (instancetype)shareInstance;

/// 初次配置
- (void)initConfig;

/// 开启 mock，注册监控
- (void)startMock;

/// 关闭 mock，取消监控
- (void)stopMock;

/// 保存配置信息到本地
- (void)saveConfigToLocal;

@end

NS_ASSUME_NONNULL_END
